package com.source.boot01.controller;

import com.source.boot01.domain.ClassRoom;
import com.source.boot01.service1.ClassRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wengqy
 * @Date 2021/1/25
 */
@RestController
@RequestMapping("/class")
public class ClassRoomController {
    @Autowired
    ClassRoomService classRoomService;

  @RequestMapping("/get/{id}")
    public ClassRoom getClassRoomStudentById(@PathVariable("id") Integer id){
        return  classRoomService.getClassRoomStudentById(id);
    }
}
